package com.zhm.springcloud.dao;

import com.zhm.springcloud.entities.Payment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * Date： 2021/3/7 18:59
 *
 * @author ZHM
 */
@Mapper
public interface PaymentDao {

    /**
     * 创建一个payment对象
     * @param payment payment参数对象
     * @return
     */
    int create(Payment payment);

    /**
     * 通过ID指定查找一个Payment对象
     * @param id 指定ID
     * @return Payment对象
     */
    Payment getPaymentById(@Param("id")Long id);

}
